package io.renren.modules.wcs.listenSlaveDB.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.QueryChainWrapper;
import io.renren.common.utils.R;
import io.renren.modules.basic.entity.MtCcProductEntity;
import io.renren.modules.basic.service.MtCcProductService;
import io.renren.modules.wcs.listenSlaveDB.entity.TestEntity2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: liguanghao
 * @Date: 2020/3/9 10:37
 * @Version 1.0
 */
@Component
public class MtCcProductServiceBean {
    @Autowired
    MtCcProductService mtCcProductService;
    public MtCcProductEntity getone(TestEntity2 testEntity2){
        MtCcProductEntity productEntity = mtCcProductService.getOne(new QueryWrapper<MtCcProductEntity>().eq("product_code", testEntity2.getFnumber()));
        return productEntity;
    }
}
